package com.probox.common.entity.service.order;

import java.util.List;

import com.alibaba.fastjson.JSONObject;
import com.baomidou.mybatisplus.extension.service.IService;
import com.probox.common.entity.domain.order.OrderInfoParent;
import com.probox.common.entity.domain.order.OrderPayInfo;

/**
 * 付款流水Service接口
 *
 * @author hds
 * @date 2021-06-07
 */
public interface IOrderPayInfoService extends IService<OrderPayInfo> {


        /**
         * 查询付款流水
         *
         * @param payUid 付款流水ID
         * @return 付款流水
         */
        public OrderPayInfo selectOrderPayInfoById(Long payUid);

        /**
         * 根据订单号查询支付信息
         * @param orderNo
         * @return
         */
        public OrderPayInfo getOrderPayInfo(String orderNo,String payMethod);


        /**
         * 查询付款流水列表
         *
         * @param orderPayInfo 付款流水
         * @return 付款流水集合
         */
        public List<OrderPayInfo> queryList(OrderPayInfo orderPayInfo);


        /**
         * 新增付款流水
         *
         * @param orderPayInfo 付款流水
         * @return 结果
         */
        public boolean insertOrderPayInfo(OrderPayInfo orderPayInfo);

        /**
         * 保存微信的支付记录
         * @param jsonObject
         * @param parent
         * @return
         */
        public boolean insertWechatOrderPayInfo(JSONObject jsonObject, OrderInfoParent parent);



        /**
         * 修改付款流水
         *
         * @param orderPayInfo 付款流水
         * @return 结果
         */
        public boolean updateOrderPayInfo(OrderPayInfo orderPayInfo);

        /**
         * 批量删除付款流水
         *
         * @param payUids 需要删除的付款流水ID
         * @return 结果
         */
        public boolean deleteOrderPayInfoByIds(Long[] payUids);




}
